.clearfix:before,
.clearfix:after {
    content: "";
    display: table;
}
.clearfix:after {
        clear: both;
}

.clearfix {
     *zoom: 1;
}
* {
    margin: 0;
    padding: 0;
}
.w {
    width: 1200px;
    margin: auto ;
}
body {
    background:#f3f5f7;
}
li {
    list-style: none;
}
a {
    text-decoration: none;
}
.header {
    height: 42px;
    margin:30px auto;
    /* 此地方会重叠w里面的margin */
}
.logo {
    float: left;
    width: 198px;
    height: 42px;
}
.nav {
    float: left;
    margin-left: 60px;
}
.nav ul li {
    float: left;
    margin: 0 15px;
}
.nav ul li a{
    display: block;
    height: 42px;
    /* 不加宽度，将来可以继续加导航栏 */
    padding: 0 10px;
    /* 因为字多少不一样，所以用padding */
    line-height: 42px;
    font-size: 18px;
    color: #050505;
}
.nav ul li a:hover {
    border-bottom: 2px solid #00a4ff;
    color: #00a4ff;
}
/* 搜索模块 */
.search {
    float: left;
    width: 412px;
    height: 42px;
    margin-left: 70px;
}
.search input {
    float: left;
    /* width: 360px; */
    width: 345px;
    /* padding 会撑大盒子，要减去 */
    height: 40px;
    border:1px solid #00a4ff;
    border-right: 0;
    color: #bfbfbf;
    font-size: 14px;
    padding-left: 15px;
}
/* 加浮动,无缝隙 */
.search button {
    float: left;
    width: 50px;
    height: 42px;
    background: url(images/fa-search.png);
    /* 按钮button默认有边框需要去掉 */
    border: 0;
}
.user {
    float: right;
    line-height: 42px;
    margin-right: 30px;
    font-size: 14px;
    color: #666;
}
/* banner区域 */
.banner {
    height: 421px;
    background-color: #1c036c;
}
.banner .w {
    height: 421px;
    background: url(images/banner2.png) no-repeat top center;
}
.subnav {
    float: left;
    width: 190px;
    height: 421px;
    background: rgba(0,0,0,0.3);
}
.subnav ul li {
    height: 45px;
    line-height: 45px;
    padding: 0 20px;
}
.subnav ul li a {
    color: #fff;
    font-size: 14px;
}
.subnav ul li a span {
    float: right;
}
.subnav ul li a:hover{
    color: #00a4ff;
}
.course {
    float: right;
    width: 230px;
    height: 300px;
    margin-top: 50px;
    /* 浮动的盒子不会有外边距合并的问题 */
    background-color: #fff;
}
.course h2 {
    height: 48px;
    background-color: #9bceea;
    text-align: center;
    line-height: 48px;
    font-size: 18px;
    color: #fff;
}
.bd {
    padding: 0 20px;
}
.bd ul li {
    padding: 14px 0;
    border-bottom: 1px solid #ccc;
}
.bd ul li h4 {
    font-size: 16px;
    color: #4e4e4e;
}
.bd ul li p {
    font-size: 12px;
    color: #a5a5a5;
}
.bd .more {
    display: block;
    height: 38px;
    border: 1px solid #00a4ff;
    margin-top: 5px;
    text-align: center;
    line-height: 38px;
    color: #00a4ff;
    font-size: 16px;
    font-weight: 700;
    background-color: #fff;
}
/* 精品推荐模块部分 */
.goods {
    margin-top: 10px;
    height: 60px;
    background-color: #fff;
    box-shadow: 0 2px 3px 3px rgba(0,0,0,0.1);
    line-height: 60px;
}
.goods h3 {
    float: left;
    margin-left: 30px;
    font-size: 16px;
    color: #00a4ff;
}
.goods ul {
    float: left;
    margin-left: 30px;
}
.goods ul li {
    float: left;
}
.goods ul li a{
    padding: 0 30px;
    font-size: 16px;
    color: #050505;
    border-left: 1px solid #ccc;
}
.mod  {
    float: right;
    margin-right: 30px;
    font-size: 14px;
    color: #00a4ff;
}
/* 核心内容模块 */

.box,
.box2 {
    margin-top: 30px;
}
.box-hd,
.box2-hd {
    height: 45px;
}
.box-hd h3,
.box2-hd h3  {
    float: left;
    font-size: 20px;
    color: #494949;
}
.box-hd a,
.box2-hd a {
    float: right;
    font-size: 12px;
    color: #a5a5a5;
    margin-top: 10px;
    margin-right: 30px;
}
.center ul {
    float: left;
    margin-left: 300px;
    
}
.center ul li {
    float: left;
    margin-right: 70px;
}
.center ul li a:hover {
    color: #00a4ff;
}

/* 把li的父亲修改的足够宽就行了 */
.box-bd ul,
.box2-bd {
    width: 1225px;
}

.box-bd ul li {
    position: relative;
    float: left;
    width: 228px;
    height: 270px;
    background-color: #fff;
    margin-right: 15px;
    margin-bottom: 15px;
}
.bt ul li {
    position: relative;
    float: left;
    width: 228px;
    height: 270px;
    background-color: #fff;
    margin-right: 15px;
    margin-top: 15px;
}
.box-bd ul li>img, 
.bt ul li >img {
    width: 100%;
}
.box-bd ul li em,
.bt ul li em {
    position: absolute;
    top:4px;
    right: -4px;
}
.box-bd ul li h4,
.bt ul li h4 {
    margin: 20px 20px 20px 25px;
    font-size: 14px;
    font-weight: normal;
    color: #050505;
}
.box-bd .info,
.bt .info {
    margin: 0 20px 0 25px;
    font-size: 12px;
    color:#999 ;
}
.box-bd .info span, 
.bt .info span {
    color: #ff7c2d;
}



.box2-left {
    float: left;
    width: 228px;
    height: 390px;
 
}
.box2-left img {
    width: 100%;
}
.box2-right {
    float: right; 
}





.footer {
    height: 415px;
}
.footer .w {
    padding-top: 35px;
}
.copyright {
    float: left;
}
.copyright p{
    font-size: 12px;
    color: #666;
    margin: 20px 0 15px 0;
}
.copyright .app {
    display: block;
    height: 33px;
    width: 118px;
    border: 1px solid #00a4ff;
    text-align: center;
    line-height: 33px;
    color: #00a4ff;
    font-size: 16px;
}
.link {
    float: right;
}
.link dl {
    float: left;
    margin-left: 100px;
}
.links dl dt {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}
.links dl dd a {
    font-size: 12px;
    color: #333;
}
